<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var value = "li";
        var arr = [{name:"li",state:false},{name:"zhang",state:false}]
        /* 判断数组中的每一项是否包含某个值
        filter
        */
        /* var res = arr.every(item=>item.name!=value)
        // console.log(arr.includes());
        console.log(res); */

        var res =arr.filter(item=>item.name!=value);
        console.log(res);
    </script>
</body>
</html>